package model.blocks;

import model.baseElements.BaseBlock;
import model.pages.SearchResultPage;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class ButtonsBlock extends BaseBlock {

    @FindBy(id = "submit_location")
    WebElement searchButton;

    public ButtonsBlock(WebDriver driver) {
        super(driver);
    }

    public void clickSearchButton() throws InterruptedException {
        waitSleepBecauseIamToLazyToFindBetterSolution();
        this.searchButton.click();
    }

}
